{extend name='webautocode@public/content'}

{block name="button"}
{include file="public/header"}
{/block}

{block name="content"}

<style>
    .mnt{
        height: 40px;
    }
    .mntbtn{
        color: #9d7162;
    }
</style>
<!-- 表单搜索 开始 -->
<!--<form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get">-->

<!--    <div class="layui-form-item layui-inline">-->
<!--        <label class="layui-form-label">搜索标题</label>-->
<!--        <div class="layui-input-inline">-->
<!--            <input name="title" value="{$Think.get.title|default=''}" placeholder="请输入标题" class="layui-input">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="layui-form-item layui-inline">-->
<!--        <label class="layui-form-label">表名</label>-->
<!--        <div class="layui-input-inline">-->
<!--            <input name="tablename" value="{$Think.get.tablename|default=''}" placeholder="请输入表名" class="layui-input">-->
<!--        </div>-->
<!--    </div>-->


<!--    <div class="layui-form-item layui-inline">-->
<!--        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>-->
<!--    </div>-->

<!--</form>-->

<!-- 表单搜索 结束 -->

<form onsubmit="return false;" data-auto="true" method="post">
    <!--{empty name='list'}-->
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    <!--{else}-->
    <input type="hidden" value="resort" name="action">
    <table class="layui-table" lay-skin="line">
        <thead>
        <tr>
            <th class='text-left nowrap'></th>
            <th class='text-left nowrap'>表名</th>
            <th class='text-left nowrap'>注释</th>
            <th class='text-left nowrap'></th>
        </tr>
        </thead>
        <tbody>
        <!--{foreach $list as $key=>$vo}-->
        <tr class="mnt">
            <td class='text-left nowrap'>
            </td>
            <td class='text-left nowrap'>
                {$vo.name}
            </td>
            <td class='text-left nowrap'>
                {:mb_substr($vo.comments,0,60,'utf-8')}
            </td>
            <td class='text-right nowrap'>

                <a href='{:url("showfields")}?tablename={$vo.name}' target="_blank" class="mntbtn" data-title="准备 ">【查询API】</a>


            </td>
            <td class='text-right nowrap'>

                <a href='{:url("showfieldstoadd")}?tablename={$vo.name}' target="_blank" data-title="准备 ">【新增API】</a>


            </td>
            <td class='text-right nowrap'>

                <a href='{:url("showfieldstoupdate")}?tablename={$vo.name}' target="_blank" class="mntbtn" data-title="准备 ">【修改API】</a>


            </td>
            <td class='text-right nowrap'>
                <a href='{:url("showfieldstosum")}?tablename={$vo.name}' target="_blank" data-title="准备 ">【聚合API】</a>
            </td>
            <td class='text-right nowrap'>
            </td>
        </tr>
        <!--{/foreach}-->
        </tbody>
    </table>
    {if isset($page)}<p>{$page|raw}</p>{/if}
    <!--{/empty}-->
</form>

{/block}